package main

import "fmt"

func main() {

	/*section1:
	fmt.Println(1)

	for v := 0; v < 10; v++ {

		if v == 5 {
			goto section1
		}

	}*/

section2:
	for v := 0; v < 10; v++ {
		fmt.Println(v)
		if v == 5 {
			break section2 // break+标签   当标签写在循环语句上才能 break+标签
		}
	}

section3:
	for v := 0; v < 10; v++ {
		fmt.Println(v)
		if v == 5 {
			continue section3 // continue+标签   当标签写在循环语句上才能continue+标签
		}
	}

}
